package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserFavorite;
import com.ecoolex.ying.space.entity.UserFavoriteExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserFavoriteMapper {
    long countByExample(UserFavoriteExample example);

    int deleteByExample(UserFavoriteExample example);

    int deleteByPrimaryKey(Integer favoriteId);

    int insert(UserFavorite record);

    int insertSelective(@Param("record") UserFavorite record, @Param("selective") UserFavorite.Column ... selective);

    UserFavorite selectOneByExample(UserFavoriteExample example);

    List<UserFavorite> selectByExample(UserFavoriteExample example);

    UserFavorite selectByPrimaryKey(Integer favoriteId);

    UserFavorite selectByPrimaryKeyWithLogicalDelete(@Param("favoriteId") Integer favoriteId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserFavorite record, @Param("example") UserFavoriteExample example, @Param("selective") UserFavorite.Column ... selective);

    int updateByExample(@Param("record") UserFavorite record, @Param("example") UserFavoriteExample example);

    int updateByPrimaryKeySelective(@Param("record") UserFavorite record, @Param("selective") UserFavorite.Column ... selective);

    int updateByPrimaryKey(UserFavorite record);

    int batchInsert(@Param("list") List<UserFavorite> list);

    int batchInsertSelective(@Param("list") List<UserFavorite> list, @Param("selective") UserFavorite.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserFavoriteExample example);

    int logicalDeleteByPrimaryKey(Integer favoriteId);
}